#define _CRT_SECURE_NO_WARNINGS
#include"LTlist.h"

int main()
{
	LTNode* phead = LTInit();
	LTPushBack(phead, 1);
	LTPushBack(phead, 2);
	LTPushBack(phead, 3);
	LTPushBack(phead, 4);
	LTPrint(phead);
	LTPushFront(phead, 100);
	LTPrint(phead);
	LTPopFront(phead);
	LTPrint(phead);
	LTNode* ret = LTFind(phead, 2);
	LTInsert(ret, 120);
	LTPrint(phead);
	LTErase(ret->next);
	LTPrint(phead);
	LTDestroy(phead);
	return 0;
}